package com.cssl.openFeign;

import com.cssl.domain.DtsRole;
import com.cssl.domain.dto.DtsRoleDto;
import com.cssl.util.InfoCode;
import com.cssl.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "DtsShopProvider9090", path = "/role", contextId = "role")
public interface DtsRoleClient {
    @PostMapping("/roleOptions")
    public Result roleOptions() ;
    @PostMapping("/listRole")
    public Result getlistRole(@RequestBody DtsRoleDto dto);
    @PostMapping("/createRole")
    public Result createRole(@RequestBody DtsRole role) ;
    @PostMapping("/updateRole")
    public Result updateRole(@RequestBody DtsRole role);
    @PostMapping("/deleteRole")
    public Result deleteRole(@RequestBody DtsRole role);
    @PostMapping("/permissions")

    public Result permissions(@RequestBody DtsRole role);
}
